<!DOCTYPE html>

<html lang="zh-CN">
  <head>
    <!-- <base href="./"> -->
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
    />
    <meta
      name="description"
      content="CoreUI - Open Source Bootstrap Admin Template"
    />
    <meta name="author" content="琴时" />
    <meta
      name="keyword"
      content="Bootstrap,Admin,Template,Open,Source,jQuery,CSS,HTML,RWD,Dashboard"
    />

    <title>学生成绩表</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <link href="/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link
      href="/css/simple-line-icons/css/simple-line-icons.css"
      rel="stylesheet"
    />
    <link href="/css/style.css" rel="stylesheet" />
  </head>

  <body class="app header-fixed aside-menu-fixed">
    <header class="app-header navbar">
      <a class="navbar-brand" href="#" style="margin: 0 auto">
        <i class="fa fa-graduation-cap fa-2x" aria-hidden="true"></i>教务系统
      </a>
    </header>
    <div class="app-body">
      <main class="main">
        <!-- 头部管理-->
        <ol class="breadcrumb">
          <li class="breadcrumb-item">教务系统</li>
          <li class="breadcrumb-item">学生成绩表</li>
        </ol>
        <div class="container-fluid">
          <!--指定插值不闪烁的控件-->
          <div class="animated fadeIn" id="itemsTemplate">
            <div class="card">
              <!--卡片头部-->
              <div class="card-header">
                <i class="icon-people" aria-hidden="true"></i>学生成绩表
                <div class="card-header-actions">
                  <a class="card-header-action btn-setting" href="/adduser_get">
                    <i class="icon-plus"> 导入</i>
                  </a>
                </div>
              </div>
              <div class="card-body collapse show" id="collapseExample">
                <!-- 用来查询 -->
                <form action="/find_post" method="post">
                  <div class="form-group" style="margin-left: 0rem">
                    <button class="btn btn-primary" type="submit">查询</button>
                    <div style="display: inline-block">
                      <input
                        name="id"
                        value=""
                        type="text"
                        class="form-control"
                        placeholder="请输入学号查找！"
                        pattern="^[0-9]*$"
                        required
                        style="margin-left: 10px; width: 250px"
                      />
                    </div>
                  </div>
                </form>
                <table
                  class="table table-responsive-sm table-bordered table-striped"
                >
                  <thead>
                    <tr>
                      <th>学号</th>
                      <th>姓名</th>
                      <th>机器学习</th>
                      <th>大前端</th>
                      <th>微服务</th>
                      <th>R语言</th>
                      <th>系统安全</th>
                      <th>操作</th>
                    </tr>
                  </thead>
                  <tbody id="tbody">
                    {{each data}}
                    <tr>
                      <td contenteditable="false">{{$value.id}}</td>
                      <td contenteditable="false">{{$value.name}}</td>
                      <td contenteditable="false">
                        {{$value.machine_learning}}
                      </td>
                      <td contenteditable="false">{{$value.nodejs}}</td>
                      <td contenteditable="false">{{$value.microservice}}</td>
                      <td contenteditable="false">{{$value.rstudio}}</td>
                      <td contenteditable="false">{{$value.system_safety}}</td>
                      <td>
                        <a
                          class="btn btn-ghost-success"
                          href="/getone?id={{$value.id}}"
                          >查看</a
                        >
                        <a
                          class="btn btn-ghost-primary"
                          href="/update_get?id={{$value.id}}"
                          >修改</a
                        >
                        <a
                          class="btn btn-ghost-danger"
                          href="/delone?id={{$value.id}}"
                          >删除</a
                        >
                      </td>
                    </tr>
                    {{/each}}
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
      </main>
    </div>

    <footer class="app-footer">
      <div>
        <a target="_blank" href="https://www.cnblogs.com/zhif97/">琴时</a>
        <span>&copy; 2021 creativeLabs.</span>
      </div>
      <div class="ml-auto">
        <span>Author by</span>
        <a target="_blank" href="https://www.cnblogs.com/zhif97/">琴时</a>
      </div>
    </footer>
  </body>
</html>
